/*------------------------------------------------------------------------
//                          Project CommonLib                           //
------------------------------------------------------------------------*/


#include "stdafx.h"
#include "Sort.h"


namespace Algorithm
{
	void QSort(void *base, unsigned int num, unsigned int size, QSortCB callback)
	{
		::qsort(base, num, size, callback);
	}

	template<>
		int SortDescendT<float>(const void *a,const void *b)
	{
		if( *(float*)a > *(float*)b )
			return 1;
		else if( *(float*)a < *(float*)b)
			return -1;
		return 0;		
	}
}


/*------------------------------------------------------------------------

------------------------------------------------------------------------*/
